package com.common.platform.base.tree.node;


import com.common.platform.base.tree.Tree;
import lombok.Data;

import java.util.List;

@Data

public class TreeviewNode implements Tree {
    /**
     * 附加信息一般用与村业务id
     */
    private String tage;
    /**
     * 父级id
     */
    private String parentId;
    /**
     * 节点名称
     */
    private String text;
    /**
     * 子节点
     */
    private List<TreeviewNode> nodes;

    @Override
    public String getNodeId() {
        return tage;
    }

    @Override
    public String getNodeParentId() {
        return parentId;
    }

    @Override
    public void setChildrenNodes(List childrenNodes) {
        this.nodes=childrenNodes;

    }
}
